<template>
  <div class="title-wrap">
    <span class="line"></span>
    <slot name="text" :titleText="titleText">
      <span class="title-text">{{ titleText }}</span>
    </slot>
    <span class="line"></span>
  </div>
</template>

<script>
export default {
  name: 'titleModule',
  props: {
    titleText: String
  }
}
</script>

<style lang="stylus" scoped>
.title-wrap {
  display: flex;
  align-items: center;

  .line {
    flex: 1;
    height: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .title-text {
    margin: 0 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
  }
}
</style>
